package cn.zysuyuan.item.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @author flypig
 * @version 1.0
 * @date 2019/10/27 19:40
 */

/**
 * 设备
 */
//@Table(name = "t_device")
public class Device implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;      //设备id',
    private String tName;      //设备名称',
    private String tSerialNumber;      //设备编号',
    private double tLongitude;      //设备经度',
    private double tLatitude;      //设备维度',
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date tCreateTime;      //创建时间',
    private String tRemarks;      //备注

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String gettName() {
        return tName;
    }

    public void settName(String tName) {
        this.tName = tName;
    }

    public String gettSerialNumber() {
        return tSerialNumber;
    }

    public void settSerialNumber(String tSerialNumber) {
        this.tSerialNumber = tSerialNumber;
    }

    public double gettLongitude() {
        return tLongitude;
    }

    public void settLongitude(double tLongitude) {
        this.tLongitude = tLongitude;
    }

    public double gettLatitude() {
        return tLatitude;
    }

    public void settLatitude(double tLatitude) {
        this.tLatitude = tLatitude;
    }

    public Date gettCreateTime() {
        return tCreateTime;
    }

    public void settCreateTime(Date tCreateTime) {
        this.tCreateTime = tCreateTime;
    }

    public String gettRemarks() {
        return tRemarks;
    }

    public void settRemarks(String tRemarks) {
        this.tRemarks = tRemarks;
    }
}
